# -*- coding: utf-8 -*-
from openerp import models, fields, api

class gmq_bs_sygz(models.Model):
    '''
    使用规则
    '''
    _name = 'gmq.bs.sygz'
    _rec_name = 'state'
    _description = u'使用规则'

    state = fields.Selection([
        ('正常使用', '正常使用'),
        ('闭馆', '闭馆')],default=u'正常使用',string=u'状态')
    yggz = fields.Text(u'用馆规则')
    wggz = fields.Text(u'违规规则')
    hmdgz = fields.Text(u'黑名单规则')
    zlblgz = fields.One2many('gmq.bs.sygz.blgz','sygz',u'保留规则')




